package com.zretc.letter.dao;

import com.zretc.api.pojo.Letter;
import com.zretc.api.pojo.Notice;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

public interface LetterMapper {
    ArrayList<Letter> getLettersByAmount(@Param("index")Integer index, @Param("pageNum")Integer pageNum,
                                         @Param("userId")Integer userId);
    Letter getLetterById(Integer id);
    Integer addSingleRecord(Letter letter);
}
